
const init = ['广州']
function cityReducer(preVal=init,action) {
    let {type,data} = action
    // console.log('cityReducer==>',type,data);
    switch (type) {
        case 'changeCity':
            return [...preVal,data]
        default:
            return preVal
    }
}
export default cityReducer